package com.nobuyme.box.util;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.nobuyme.box.MainActivity;

/**
 * Created by Yong.
 * E-mail：775811790@qq.com
 * 2017/8/18
 */


public class BootBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Intent myIntent = new Intent(context, MainActivity.class);
        //系统要求
        myIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(myIntent);
    }

}
